<%-- 
    Document   : cancellaUtente
    Created on : 7-lug-2012, 9.23.45
    Author     : Rosario Salone
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>HomeTeatre - Cancella utente -</title>
<style type="text/css">
<!--
.Stile1 {color: #FFFFFF}
.Stile2 {
	font-family: "Comic Sans MS", "Monotype Corsiva";
	font-size: 24px;
}
-->
</style>
</head>

<body>
<table width="804" height="96" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="100" scope="col"><img src="immagini/posta052.gif" width="64" height="77" /></th>
    <th width="700" scope="col"><a href="index.jsp"><img src="immagini/httitolo.jpg" width="700" height="100" /></a></th>
    
  </tr>
</table>
<table width="804" border="0" cellpadding="0" cellspacing="0" bgcolor="#0066CC">
  <tr>
    <th width="100" height="181" border="10" rowspan="9" allign="left" valign="top" scope="col">
        
        <%
          if (session.getAttribute("password")==null || session.getAttribute("login")==null){ //session.getAttribute("cognome").equals("admin")
%>     
                
                <a href="accediUt.jsp"><img src="immagini/Accedi.jpg" width="103" height="50" /></a>
         <a href="registraUtente.jsp"><img src="immagini/Registrati.jpg" width="103" height="50" /></a>
          
            
            
            
        <%} else{
                if (session.getAttribute("password").equals("admin") && session.getAttribute("login").equals("admin")){ //session.getAttribute("cognome").equals("admin")
                request.setAttribute("password", "admin"); 
                request.setAttribute("login", "admin");
                %>
                <img src="immagini/AreaAmmini3.jpg" width="103" height="50" />
                <a href="index.jsp"><img src="immagini/ricEv.jpg" width="103" height="50" /></a>
                <a href="aggiungiEvento.jsp"><img src="immagini/AggEv.jpg" width="103" height="50" /></a>
            <a href="nonImplementato.jsp"><img src="immagini/RimUt.jpg" width="103" height="50" /></a>
            

        
        <%}else
        {%> 
              <img src="immagini/AreaGest.jpg" width="103" height="50" />
              <a href="index.jsp"><img src="immagini/ricEv.jpg" width="103" height="50" /></a>
              <a href="accessoPrenot.jsp"><img src="immagini/prenotazioni_1.jpg" width="103" height="50" /></a>
                <a href="modificaUtente.jsp"><img src="immagini/ModificaD.jpg" width="103" height="50" /></a>
           
           
            
            

            
                  <%}
                
      
                %> 
                
                              &nbsp;&nbsp;
          <form id="form1" name="form1" method="post" action="Controller">
          <input type="hidden" value="logOut" name="provenienza" />
          <input type="submit" value="log out" name="logOut" />
          
          </form>
<%} %>

     </th>
    <th width="300" height="400" rowspan="6" align="justify" valign="top" scope="col" >

    
    <%if (((session.getAttribute("login")!=null)&&(session.getAttribute("password")!=null))&&((session.getAttribute("login")!="")&&(session.getAttribute("password")!="")))
      { 
         if(!(session.getAttribute("login").equals("admin")) && !(session.getAttribute("password").equals("admin")))
        {
         request.setAttribute("login",session.getAttribute("login"));
         request.setAttribute("password",session.getAttribute("password"));
         
         String p=""+session.getAttribute("login");
         %>
        
         <th width="599" rowspan="6" align="center" valign="top" scope="col">
            <form id="form1" name="form1" method="post" action="Controller">
         <br/> <br/><br/> <br/> <br/><br/>
         <font color=yellow size=+2>Sei sicuro di voler eliminare l'account e le tue prenotazioni?</font><br/><br/> <br/> <br/><br/>
          <input type="hidden" name="provenienza" value="cancellaUtente" />
        <input type="hidden" name="operaz" value="cancella" />
        <input type="submit" name="conferma" value="Prosegui !!" /> 
        <br/> <br/><br/> <br/> <br/><br/>  </form>   
          
    
    
        <%}
         else{%>
         
         <th width="599" rowspan="6" align="center" valign="top" scope="col"><form id="form1" name="form1" method="post" action="Controller">
       <label>
           <br /><br /><font color=yellow size=+2> Inserisci i dati dell'utente che vuoi eliminare</font>
          <br /><br />
       <br /><input type="text" name="mail" size="22" value=<%if (request.getAttribute("mail")==null){%> "" <%} else {%>"<%=request.getAttribute("login")%>"<%}%> />
       <% if (((request.getAttribute("mail")==null)||(request.getAttribute("mail")==""))&&(request.getAttribute("errore")!=null)) {%>
        
        <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
        
      <%}
 %> 
      
          </label>
                <input type="hidden" name="provenienza" value="cancellaUtente" />
        <input type="hidden" name="operaz" value="cancella" />
        <input type="submit" name="conferma" value="Prosegui !!" /> 

        </form>
        
        
        
        
        <%}
    
    
    %> 
<% } else {%> 
     <th width="599" rowspan="6" align="center" valign="top" scope="col"><form id="form1" name="form1" method="post" action="Controller">
      <label><br />
      <span class="Stile1"><br />
      <br />
      <br />
      <span class="Stile2">... Inserire login e password ...</span><br />
      <br />
      <br />
      Email (login) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="text" name="login" />
      <br />
        <br />
      </span></label>
      <span class="Stile1">
      <label> Password  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      <input type="password" name="password" />
      <br />
      <br /> 
      <br />
      <br />
      </label>
      <label></label>
      </span>
      <p>
        <span class="Stile1">
        <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
        </span>
        <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="hidden" name="provenienza" value="cancellaUtente" />
        <input type="hidden" name="operaz" value="cancella" />
        <input type="submit" name="conferma" value="Accedi !!" />
        </label>
      </p>
      <p>&nbsp;</p><%}%> </form> 
      
      </th>
      <tr>
    <th width="103" height="400" rowspan="6" valign="top" scope="col"><img src="immagini/cancella.jpg" width="100" height="400" /></th>
     </tr>                          
</table>
</body>
</html>
